<%@page import="model.Contato"%>
<%@page import="java.util.List"%>
<%@page import="dao.ContatoDAO"%>
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel=stylesheet type="text/css" href="style.css">
        <script language="JavaScript" src="valida_form.js" type="text/javascript"></script>
        
        <title>Insere Registro</title>
    </head>
    <body>
        
        <h1 align="center">Inserir Registro</h1>
        <form id="form" onsubmit="return valida(this);" action="crud" method="post">
             <input type="hidden" name="method" value="save">

            
            <table align="center" border="1" width="1" cellspacing="1">
                <tbody>
                    <tr>
                        <td>Nome</td>
                        <td><input type="text" name="nome"/></td>
                    </tr>
                    <tr>
                        <td>Email</td>
                        <td><input type="text" name="email"/></td>
                    </tr>
                    <tr>
                        <td>Endereco</td>
                        <td><input type="text" name="endereco"  id="endereco"/></td>
                    </tr>
                    <tr>
                    
                        <td colspan="2" align="center"><input type="submit" value="Enviar"/>&nbsp;&nbsp;<input type="reset" value="limpar"/></td>
                    </tr>
              </tbody>
            </table>
                
        </form>
        
        <br><br>
        <div align="center"> <a href="contatos.jsp">voltar</a> </div>
        
         </body>
</html>
